<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>风车呼啦啦</title>
    <style>
      * {
        margin: 0;
        padding: 0;
      }
      .main {
        width: 100vw;
        height: 100vh;
        animation: roll 3s linear infinite;
        display: flex;
        align-items: center;
        justify-content: center;
      }

      body {
        overflow: hidden;
      }
      @keyframes roll {
        0% {
          transform: rotate(0deg);
        }
        100% {
          transform: rotate(-360deg);
        }
      }
      .white_circle {
        z-index: 99;
        width: 50px;
        height: 50px;
        position: absolute;
        top: 50%;
        left: 50%;
        border-radius: 50%;
        background-color: #fff;
        transform: translate(calc(-50%), calc(-50%));
      }
      .fla {
        position: absolute;
        width: 402px;
        height: 180px;
      }
      .fla_one {
        /* top: 50%; */
        /* left: 50%; */
        transform: rotate(270deg)
          translate(calc(50% - 5.5px), calc(-50% + 5.5px));
      }
      .fla_two {
        /* top: 50%;
        left: 50%; */
        transform: rotate(180deg)
          translate(calc(50% - 5.5px), calc(-50% + 5.5px));
      }
      .fla_three {
        /* top: 50%;
        left: 50%; */
        transform: rotate(90deg)
          translate(calc(50% - 5.5px), calc(-50% + 5.5px));
      }
      .fla_four {
        /* top: 50%;
        left: 50%; */
        transform: rotate(360deg)
          translate(calc(50% - 5.5px), calc(-50% + 5.5px));
      }
      .tri {
        width: 0;
        height: 0;
        border-width: 142px;
        border-style: solid;
        border-top-left-radius: 109px 122px;
        position: absolute;
        transform: rotate(45deg);
        top: 28px;
        left: 56px;
      }
      .tri_one {
        border-color: #f1c40f transparent transparent #f1c40f;
      }
      .tri_two {
        border-color: #ea4c3c transparent transparent #ea4c3c;
      }
      .tri_three {
        border-color: #2ecc71 transparent transparent #2ecc71;
      }
      .tri_four {
        border-color: #1abc9c transparent transparent #1abc9c;
      }
      .squ {
        position: absolute;
        width: 271px;
        height: 170px;
        border-top-right-radius: 98px 68px;
      }
      .squ_one {
        background-color: #f39c12;
      }
      .squ_two {
        background-color: #c0392b;
      }
      .squ_three {
        background-color: #27ae60;
      }
      .squ_four {
        background-color: #16a085;
      }
    </style>
  </head>
  <body>
    <div class="main">
      <div class="white_circle"></div>
      <div class="fla fla_one">
        <div class="squ squ_one"></div>
        <div class="tri tri_one"></div>
      </div>
      <div class="fla fla_two">
        <div class="squ squ_two"></div>
        <div class="tri tri_two"></div>
      </div>
      <div class="fla fla_three">
        <div class="squ squ_three"></div>
        <div class="tri tri_three"></div>
      </div>
      <div class="fla fla_four">
        <div class="squ squ_four"></div>
        <div class="tri tri_four"></div>
      </div>
    </div>
  </body>
</html>
